package top.dingyingying.springboot3.service.auth;

import top.dingyingying.springboot3.base.R;
import top.dingyingying.springboot3.entity.auth.TbUser;

public interface AuthService {
    int TOKEN_TIMEOUT = 3 * 24 * 60 * 60;

    TbUser queryById(Integer id);

    TbUser queryByName(String username);

    R<TbUser> reg(TbUser tbUser);

    R<TbUser> login(TbUser tbUser);


    R<String> logout();

    R<TbUser> info();

    boolean checkAuth();
}
